Page({
  data: {
    cardCur: 0,
    swiperList: [{
        id: 0,
        type: 'image',
        url: '../../images/1.jpg'
      },
      {
        id: 1,
        type: 'image',
        url: '../../images/2.jpg'
      },
      {
        id: 2,
        type: 'image',
        url: '../../images/3.jpg'
      },
      {
        id: 3,
        type: 'image',
        url: '../../images/4.jpg'
      }
    ]
  },
  //事件处理函数
  bindViewTap: function () {
    wx.navigateTo({
      url: '../logs/logs'
    })
  },
  onLoad: function () {
    
  },
  onReady: function () {
    //获得menu组件
    this.menu = this.selectComponent("#menu");
    this.videoswiper = this.selectComponent("#videoSwiper")
  },
  cardSwiper(e) {
    this.setData({
      cardCur: e.detail.current
    })
  }
})